#!/bin/bash

export VERS="1.3.1"
export DATANUCLEUS_VERS="1.0.5.final"
export SDK="./appengine-java-sdk-${VERS}"
export LIB="${SDK}/lib"
export REPO_ID="thirdparty"
export REPO_URL="http://ci.digitalsanctum.com:8082/nexus/content/repositories/thirdparty"
 
mvn install:install-file -Dfile=${LIB}/user/appengine-api-1.0-sdk-${VERS}.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-api-sdk \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}

mvn install:install-file -Dfile=${LIB}/impl/appengine-api-stubs.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-api-stubs \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}


mvn install:install-file -Dfile=${LIB}/user/appengine-api-labs-${VERS}.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-api-labs \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}

 
mvn install:install-file -Dfile=${LIB}/impl/appengine-api.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-api \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}

mvn install:install-file -Dfile=${LIB}/testing/appengine-testing.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-testing \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}


mvn install:install-file -Dfile=${LIB}/appengine-tools-api.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-tools \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}


mvn install:install-file -Dfile=${LIB}/shared/appengine-local-runtime-shared.jar \
  -DgroupId=com.google.appengine \
  -DartifactId=appengine-tools \
  -Dversion=${VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/shared/geronimo-el_1.0_spec-1.0.1.jar \
  -DgroupId=org.apache.geronimo.specs \
  -DartifactId=geronimo-el_1.0_spec \
  -Dversion=1.0.1 \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/shared/geronimo-jsp_2.1_spec-1.0.1.jar \
  -DgroupId=org.apache.geronimo.specs \
  -DartifactId=geronimo-jsp_2.1_spec \
  -Dversion=1.0.1 \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/shared/geronimo-servlet_2.5_spec-1.2.jar \
  -DgroupId=org.apache.geronimo.specs \
  -DartifactId=geronimo-servlet_2.5_spec \
  -Dversion=1.2 \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/user/orm/geronimo-jpa_3.0_spec-1.1.1.jar \
  -DgroupId=org.apache.geronimo.specs \
  -DartifactId=geronimo-jpa_3.0_spec \
  -Dversion=1.1.1 \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/user/orm/geronimo-jta_1.1_spec-1.1.1.jar \
  -DgroupId=org.apache.geronimo.specs \
  -DartifactId=geronimo-jta_1.1_spec \
  -Dversion=1.1.1 \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}
 
mvn install:install-file -Dfile=${LIB}/user/orm/datanucleus-appengine-${DATANUCLEUS_VERS}.jar \
  -DgroupId=org.datanucleus \
  -DartifactId=datanucleus-appengine \
  -Dversion=${DATANUCLEUS_VERS} \
  -Dpackaging=jar \
  -DgeneratePom=true \
  -DrepositoryId=${REPO_ID} \
  -Durl=${REPO_URL}

